<method name="FocusApp">
<arg type="s" direction="in" name="id"/>
</method>
+<method name="ShowApplications" />
<method name="GrabAccelerator">
<arg type="s" direction="in" name="accelerator"/>
<arg type="u" direction="in" name="flags"/>
},
FocusApp: function(id) {
- let overview = Main.overview;
+ this.ShowApplications();
+ Main.overview.viewSelector.appDisplay.selectApp(id);
+ },
- overview.show();
- overview.viewSelector.setActivePage(ViewSelector.ViewPage.APPS);
- overview.viewSelector.appDisplay.selectApp(id);
+ ShowApplications: function() {
+ Main.overview.viewSelector.showApps();
},
GrabAcceleratorAsync: function(params, invocation) {
this._showAppsButton.checked = !this._showAppsButton.checked;
},
+ showApps: function() {
+ Main.overview.show();
+ this._showAppsButton.checked = true;
+ },
+
show: function() {
this._activePage = this._workspacesPage;